Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pass /NOEXP /NOIMPLIB options to the linker when publishing native AOT .exes #74641

Merged
merged 1 commit into from
Aug 27, 2022

Conversation

jkotas
Copy link
Member

@jkotas jkotas commented Aug 26, 2022

VS2022 link.exe creates *.lib and *.exp files when linking .exes and prints a message like "Creating library bin\Release\net7.0\win-x64\native\repro.lib and object bin\Release\net7.0\win-x64\native\repro.exp" to the console. These files are not really useful for .exes and the message is unnecessary clutter in the dotnet publish output with NativeAOT.

Pass /NOEXP /NOIMPLIB to the linker to suppress this behavior.

…T .exes

VS2022 link.exe creates *.lib and *.exp files when linking .exes and prints a message like "Creating library bin\Release\net7.0\win-x64\native\repro.lib and object bin\Release\net7.0\win-x64\native\repro.exp" to the console. These files are not really useful for .exes and the message is unnecessary clutter in the dotnet publish output with NativeAOT.

Pass /NOEXP /NOIMPLIB to the linker to suppress this behavior.
@ghost ghost assigned jkotas Aug 26, 2022
@jkotas jkotas changed the title Pass /NOEXP /NOIMPLIB options to the linker when publishing native AO… Pass /NOEXP /NOIMPLIB options to the linker when publishing native AOT .exes Aug 26, 2022
@jkotas
Copy link
Member Author

jkotas commented Aug 26, 2022

cc @dotnet/ilc-contrib

Copy link
Member

@MichalStrehovsky MichalStrehovsky left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

THANK YOU! This was really annoying me. I was trying to fix it when the debug header was introduced; I found noimplib but not noexp.

@jkotas
Copy link
Member Author

jkotas commented Aug 27, 2022

The failure is #74328

@jkotas jkotas merged commit 78e41f8 into dotnet:main Aug 27, 2022
@jkotas jkotas deleted the no-exp-implib branch August 27, 2022 04:21
@ghost ghost locked as resolved and limited conversation to collaborators Sep 26, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants